<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{{ user.title }}</title>
</head>
<body>
<h1 style="color: cadetblue">my name is {{ user.name }},i am {{ user.age }}. </h1>

     <h3>i have books like  {% for book in books %}{{ forloop.counter }}.{{ book }} {% endfor %}</h3>

<div>{{ user.read }}</div>
{% if user %}
    <li>name:{{ user.name}}</li>
{% else %}
    <h1>用户不存在1121211</h1>
{% endif %}
</body>
</html>